package codeGeneration;

import java.util.ArrayList;
import java.util.List;

public class Control {
	private int index;
	private String description;
	private String controlName;
	private int type;
	private int io;
	private boolean isHasEvent;
	private List<Integer> typeEvents;
	private String value;

	public Control() {
		typeEvents = new ArrayList<Integer>();
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getDescription() {
		return description;
	}

	public void setDescriptions(String description) {
		this.description = description;
	}

	public String getControlName() {
		return controlName;
	}

	public void setControlName(String controlName) {
		this.controlName = controlName;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getIo() {
		return io;
	}

	public void setIo(int io) {
		this.io = io;
	}

	public boolean isHasEvent() {
		return isHasEvent;
	}

	public void setHasEvent(boolean isHasEvent) {
		this.isHasEvent = isHasEvent;
	}

	public List<Integer> getTypeEvents() {
		return typeEvents;
	}

	public void setTypeEvents(List<Integer> typeEvents) {
		this.typeEvents = typeEvents;
	}

	public void addTypeOfEvent(int typeOfEvent) {
		this.typeEvents.add(typeOfEvent);
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}